package com.example.demo.repository;

import com.example.demo.dataobject.MedicineShorthand;
import org.springframework.data.jpa.repository.JpaRepository;

import javax.persistence.criteria.CriteriaBuilder;
import java.util.List;

public interface MedicineShorthandRepository extends JpaRepository<MedicineShorthand,Integer> {
//    List<MedicineShorthand> findByTelephoneOrderByRecordTimeDesc(String telephone);
    List<MedicineShorthand> findByUserIdOrderByRecordTimeDesc(Integer userId);
    MedicineShorthand findById(Integer id);

}
